package com.wow.wa.bill.util;

import java.util.List;

import android.content.ContentValues;
import android.database.Cursor;

public interface VoConvertComponent {
	/**
	 * 透過vo取得contentValue
	 * 
	 * @param obj
	 * @return
	 */
	public ContentValues contentValueFromVo(Object obj) throws Exception;

	/**
	 * Json 2 Bean
	 * @param jsonVo
	 * @param tarClass
	 * @return
	 * @throws Exception
	 */
	public <T> T convert2Bean(Object jsonVo, Class<T> tarClass)
			throws Exception;
	
	public <T1> List<T1> getObjForm(Cursor cursor, Class<T1> tarClass) ;
}
